Table View
TableView 创建
在视图中拖入一个tableView,并设置约束

TableView的行高

TableView的代理
ctrl drag tableView to the controller

TableView IBOutlet in controller

ViewController conforms to protocol

Table view cell
TableView中设置cell

TableViewCell ID

TableViewCell custom class

TableViewCell取消分割线

采用UIView作为分割线

黑色,透明度2%

UIStoryBoard中的Constraints
两者顶部对齐

两者底部对齐

两者中线对齐

View中的元素
Lable内文字可以自动换行
设为0

ImageView设为AspectFit

Search View
主视图中添加导航栏视图
创建一个高度为64的导航栏视图,并将其底部与table view顶部相连接



导航栏内嵌UIView for searchBar
在导航栏中内嵌一个UIView 高度为44,透明



搜索结果界面创建
在storyboard中复制一个view controller scene 为search controller scene

搜索结果界面的导航栏和主视图的一致,内嵌view for searchbar, 不需要cell


custom class 和 storyboard ID
